package com.codejoys.monitor.domain;

import java.io.Serializable;

public class ChannelConfig implements Serializable {
    private String channel;

    private String cabinet;

    private String cabinetIp;

    private Byte canIndex;

    private Integer canModuleId;

    private Integer modbusIndex;

    private static final long serialVersionUID = 1L;

    public String getChannel() {
        return channel;
    }

    public void setChannel(String channel) {
        this.channel = channel;
    }

    public String getCabinet() {
        return cabinet;
    }

    public void setCabinet(String cabinet) {
        this.cabinet = cabinet;
    }

    public String getCabinetIp() {
        return cabinetIp;
    }

    public void setCabinetIp(String cabinetIp) {
        this.cabinetIp = cabinetIp;
    }

    public Byte getCanIndex() {
        return canIndex;
    }

    public void setCanIndex(Byte canIndex) {
        this.canIndex = canIndex;
    }

    public Integer getCanModuleId() {
        return canModuleId;
    }

    public void setCanModuleId(Integer canModuleId) {
        this.canModuleId = canModuleId;
    }

    public Integer getModbusIndex() {
        return modbusIndex;
    }

    public void setModbusIndex(Integer modbusIndex) {
        this.modbusIndex = modbusIndex;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", channel=").append(channel);
        sb.append(", cabinet=").append(cabinet);
        sb.append(", cabinetIp=").append(cabinetIp);
        sb.append(", canIndex=").append(canIndex);
        sb.append(", canModuleId=").append(canModuleId);
        sb.append(", modbusIndex=").append(modbusIndex);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}